package com.vehicle.coupon.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vehicle.common.core.annotation.Excel;
import com.vehicle.common.core.web.domain.BaseEntity;

/**
 * 优惠券领取记录对象 coupon_record_copy1
 *
 * @author XU
 * @date 2025-04-01
 */
public class CouponRecordCopy1 extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date getTime;

    /** 使用状态：0-未使用，1-已使用，2-已过期 */
    @Excel(name = "使用状态：0-未使用，1-已使用，2-已过期")
    private Integer status;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 截止时间 */
    @Excel(name = "截止时间")
    private String endTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setGetTime(Date getTime)
    {
        this.getTime = getTime;
    }

    public Date getGetTime()
    {
        return getTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("couponId", getCouponId())
            .append("userId", getUserId())
            .append("getTime", getGetTime())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("endTime", getEndTime())
            .toString();
    }
}
